package TestForOne;

/**
 * @author : zzr
 * @description :
 * @date :
 */

class Alg2<T> {
    public static <T extends Comparable<T>> T getMax(T[] array) {
        T max = array[0];
        for (int i = 1; i < array.length ; i++) {
            if(array[i].compareTo(max) > 0) {
                max = array[i];
            }
        }
        return max;
    }
}
public class Test5 {

}
